package obj;

import java.math.BigDecimal;

import java.util.ArrayList;
import java.util.List;


public class Teachers {
    private BigDecimal prof_id;
    private BigDecimal supervisor_id;
    private String nume;
    private String prenume;
    private String email;
    List<Teachers> children;

    public Teachers() {
    }

    public Teachers(BigDecimal prof_id, String nume) {
        this.prof_id = prof_id;
        this.nume = nume;
    }


    public void setProf_id(BigDecimal prof_id) {
        this.prof_id = prof_id;
    }

    public BigDecimal getProf_id() {
        return prof_id;
    }

    public void setSupervisor_id(BigDecimal supervisor_id) {
        this.supervisor_id = supervisor_id;
    }

    public BigDecimal getSupervisor_id() {
        return supervisor_id;
    }


    public void setChildren(List<Teachers> children) {
        this.children = children;
    }

    public List<Teachers> getChildren() {
        if (children == null)
            children = new ArrayList<Teachers>();
        return children;
    }

    @Override
    public String toString() {
        return nume;
    }

    public void setNume(String nume) {
        this.nume = nume;
    }

    public String getNume() {
        return nume;
    }

    public void setPrenume(String prenume) {
        this.prenume = prenume;
    }

    public String getPrenume() {
        return prenume;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }
}
